package com.briup.cms.bean;

import java.util.Date;
import java.util.List;

/**
 * 资讯类
 */
public class Article {
    //资讯id
    private Integer articleId;
    //标题
    private String articleTitle;
    //资讯正文
    private String articleContent;
    //资讯发布时间
    private Date articlePublishTime;
    // 资讯阅读次数
    private Integer articleReadTime;
    //资讯状态：0-待审核，1-不通过，2-通过，3-推荐
    private Integer articleStatus;
    // 资讯点赞数量
    private Integer articleThump;
    //资讯封面
    private String articleCover;
    //资讯所在栏目
    private Category category;
    //资讯发布人
    private BaseUser baseUser;
    //资讯评论信息
    private List<Comment> comments;

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent;
    }

    public Date getArticlePublishTime() {
        return articlePublishTime;
    }

    public void setArticlePublishTime(Date articlePublishTime) {
        this.articlePublishTime = articlePublishTime;
    }

    public Integer getArticleStatus() {
        return articleStatus;
    }

    public void setArticleStatus(Integer articleStatus) {
        this.articleStatus = articleStatus;
    }

    public String getArticleCover() {
        return articleCover;
    }

    public void setArticleCover(String articleCover) {
        this.articleCover = articleCover;
    }

    public Integer getArticleReadTime() {
        return articleReadTime;
    }

    public void setArticleReadTime(Integer articleReadTime) {
        this.articleReadTime = articleReadTime;
    }

    public Integer getArticleThump() {
        return articleThump;
    }

    public void setArticleThump(Integer articleThump) {
        this.articleThump = articleThump;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public BaseUser getBaseUser() {
        return baseUser;
    }

    public void setBaseUser(BaseUser baseUser) {
        this.baseUser = baseUser;
    }

    public List<Comment> getComments() {
        return comments;
    }

    public void setComments(List<Comment> comments) {
        this.comments = comments;
    }

    @Override
    public String toString() {
        return "Article{" +
                "articleId=" + articleId +
                ", articleTitle='" + articleTitle + '\'' +
                ", articleContent='" + articleContent + '\'' +
                ", articlePublishTime=" + articlePublishTime +
                ", articleReadTime=" + articleReadTime +
                ", articleStatus=" + articleStatus +
                ", articleThump=" + articleThump +
                ", articleCover='" + articleCover + '\'' +
                ", category=" + category +
                ", baseUser=" + baseUser +
                ", comments=" + comments +
                '}';
    }
}